import request from '@/utils/request'
const apiUrl = '/api/file-destruction'
// 保存或更新文件销毁申请单
export function saveFileDestruction(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

// 获取文件销毁申请单列表
export function getFileDestructionList(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}

// 获取文件销毁申请单详情
export function getFileDestructionById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 删除文件销毁申请单
export function deleteFileDestruction(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 